<!DOCTYPE html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p >获取简单类型的数据</p>
<p th:text="${Myname}"></p>
<p th:text="${Myage}"></p>
<br>

<p>获取对象类型的属性值</p>
<p th:text="${student1.id}"></p>
<p th:text="${student1.name}"></p>
<p th:text="${student1.email}"></p>
<p th:text="${student1.age}"></p>
<br>
<div>性别:<span th:text="${student1.sex}"></span></div>
<br>
<div>学校名称:<span th:text="${student1.schoolscho.name}"></span>
     学校地址1: <span th:text="${student1.schoolscho.address}"></span>
     学校地址2: <span th:text="${student1.schoolscho.getAddress()}"></span>
</div>
</body>
</html>